package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.ArticleInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.duansheli.entity.ArticleInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface ArticleInfoService extends IService<ArticleInfo> {
    public List<ArticleInfo> getAllArticle(int current, int size);
    public ArticleInfo getArticleByid(Long aid);
    public int addArticle(ArticleInfo article);
    public int updateArticle(ArticleInfo article);
    public int deleteArticle(Long aid);
    public List<ArticleInfo> getArticleByuid(Long uid);
    public int getTotal();
}
